import { ToDateStringFormats } from "xe-utils"

export interface LoginRequestData {
  /** admin 或 editor */
  username?: string
  /** 密码 */
  password?: string
  rePassword?: string
  email?: string
  /** 验证码 */
  code?: string | number
}

export type LoginCodeResponseData = ApiResponseData<string>

export type LoginResponseData = ApiResponseData<{ token: string; accessToken: string; refreshToken: string }>

export type UserInfoResponseData = ApiResponseData<{ username: string; roles: string[] }>
